package com.yuanheng100.ems4j.common.constant;

/**
 * Created by jlqian on 2017/1/18.
 */
public enum MessageStatus
{
    SUCCESS((short) 200, "OK"),
    SENDING((short) 300, "SENDING"),
    FAILURE((short) 500, "BAD");

    private Short code;
    private String name;

    private MessageStatus(Short code, String name)
    {
        this.code = code;
        this.name = name;
    }

    public Short getCode()
    {
        return code;
    }

    public void setCode(Short code)
    {
        this.code = code;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }
}
